package com.zzx.shiro.service.impl;

import com.zzx.shiro.dao.PermissionDao;
import com.zzx.shiro.service.PermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Set;

/**
 * (Permission)表服务实现类
 *
 * @author makejava
 * @since 2021-09-15 15:14:35
 */
@Service
public class PermissionServiceImpl implements PermissionService {

    @Resource
    private PermissionDao permissionDao;

    /**
     * <p>根据用户名获取用户权限</p>
     * @param username
     * @return java.util.Set<java.lang.String>
     * @author zhouzhixin
     * @date 2021/9/15 17:41
     */
    @Override
    public Set<String> queryByUserName(String username) {
        return permissionDao.queryByUserName(username);
    }
}
